package com.by.mapper;

import com.by.common.dao.MyBaseMapper;
import com.by.entity.SpuExtension;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SpuExtensionMapper extends MyBaseMapper<SpuExtension> {
    /**
     * 更新库存
     * @param spu_id
     * @param total
     * @return
     */
    int updateStock(@Param("spu_id")int spu_id,@Param("total")int total);
}
